package com.his.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 新科室信息
 */
@Data
@ApiModel("新科室信息")
public class NewDepartmentForm {

    /**
     * 科室名称
     */
    @NotNull(message = "科室名称不能为空")
    @Size(min = 1,message = "科室名称长度至少为1")
    @ApiModelProperty("科室名称")
    private String departmentName;

    /**
     * 科室简介
     */
    @NotNull(message = "科室介绍不能为空")
    @ApiModelProperty("科室简介")
    private String departmentDescribe;

    /**
     * 是否有下属诊室
     */
    @NotNull(message = "诊室状态不能为空")
    @Size(min = 0,max = 1,message = "请确认：是/否")
    @ApiModelProperty("是否有下属诊室")
    private String departmentState;

    /**
     * 下属诊室信息
     */
    @ApiModelProperty("下属诊室信息")
    private List<NewDisagnosisRoomForm> disagnosisRooms;
}
